import { type IVxueColumnConfig, tableUtils } from '@/components/table'
import type { IFaultCodeEntity } from '@/types'
export type { IFaultCodeEntity }

const columnConfig: IVxueColumnConfig<IFaultCodeEntity>[] = [
  {
    type: 'checkbox',
    width: 50
  },
  {
    field: 'faultCode',
    title: '故障代码',
    width: 200
  },
  {
    field: 'faultDeviceCode',
    title: '故障设备 ',
    width: 200
  },
  {
    field: 'faultDeviceLocation',
    title: '设备位置',
    width: 200
  },
  {
    field: 'faultName',
    title: '故障名称',
    width: 400
  },
  {
    field: 'faultDesc',
    title: '故障描述'
  }
]

tableUtils.setChecked(columnConfig)

export { columnConfig }
